﻿using System;
using System.Collections.Generic;
using System.Text;
using DotNet.Data;
using DotNet.Model;
namespace DotNet.Business
{
	public class AttributeBll
	{
		AttributeDal aDal=new AttributeDal();

		#region 是否存在该记录
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int AttributeID)
		{
			return aDal.Exists(AttributeID);
		}
		#endregion

		#region 获得数据列表
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public IList<Attribute> GetModel()
		{
			return aDal.GetModel();
		}
		#endregion

		#region 根据标识列获得数据实体
		/// <summary>
		/// 根据标识列获得数据实体
		/// </summary>
		/// <param name="AttributeID">标识列</param>
		/// <returns></returns>
		public Attribute GetModel(int AttributeID)
		{
			return aDal.GetModel(AttributeID);
		}
		#endregion

		#region 修改信息
		/// <summary>
		/// 修改信息
		/// </summary>
		/// <param name="Attribute">实体</param>
		/// <returns></returns>
		public bool Update(Attribute attribute)
		{
			 return aDal.Update(attribute);
		}
		#endregion

		#region 删除信息
		/// <summary>
		/// 删除信息
		/// </summary>
		/// <param name="AttributeID">标识列</param>
		/// <returns></returns>
		public bool Delete(int AttributeID)
		{
			 return aDal.Delete(AttributeID);
		}
		#endregion

		#region 添加信息
		/// <summary>
		/// 添加信息
		/// </summary>
		/// <param name="Attribute">实体</param>
		/// <returns></returns>
		public bool Insert(Attribute attribute)
		{
			 return aDal.Insert(attribute);
		}
		#endregion
	}
}
